<div id="data_page" class="in_page">
	<div class="panel panel-default">


  <div class="btn-group" role="group" aria-label="...">
          <a href="{:U('Activity/add_research_index')}"><button type="button" class="btn btn-primary">添加问卷调查</button></a>         
</div>
<div class="btn-group" role="group" aria-label="...">
          <a href="{:U('Activity/exportcsv')}"><button type="button" class="btn btn-primary">查看开启的问卷调查结果</button></a>         
</div>

</div>
      <table class="table table-bordered" style="text-align:center">
        <thead>
          <tr>
           <!--  <th><span class="glyphicon glyphicon-leaf"></span>ID</th> -->
            <th><span class="glyphicon glyphicon-leaf"></span>问卷调查标题</th>
            <th><span class="glyphicon glyphicon-leaf"></span>描述</th>
            <th><span class="glyphicon glyphicon-leaf"></span>创建时间</th>
            <th><span class="glyphicon glyphicon-leaf"></span>最后操作时间</th>
            <th><span class="glyphicon glyphicon-leaf"></span>是否开启</th>
            <th><span class="glyphicon glyphicon-leaf"></span>操作</th>
          </tr>     
        </thead>
        <tbody>
         <volist name="list" id="data">
          <tr>
          <!--   <td>{$data['id']}</td> -->
            <td>{$data['name']}</td>
            <td>{$data['description']}</td>
            <td>{$data['ctime']}</td>
            <td>{$data['mtime']}</td>
            <td><if condition="$data['state'] eq '0'">未开启</if><if condition="$data['state'] eq '1'">开启</if></td>
            
            <td>
               <div class="btn-group" role="group" aria-label="...">
                  <a href="{:U('Activity/question',array('id'=>$data['id']))}"><button type="button" class="btn btn-primary btn-xs">问题列表</button></a>
                  <a href="{:U('Activity/update_index',array('id'=>$data['id']))}"><button type="button" class="btn btn-primary btn-xs">修改</button></a>
                  <a href="{:U('Activity/del_research',array('id'=>$data['id']))}"  onclick="return confirm('是否确认删除？')"><button type="button" class="btn btn-danger btn-xs">删除</button></a>
               </div>
           </td>
          </tr>
        </volist>
        </tbody>
      </table> 
</div>
<div class="pagelist">{$page} </div>
<style>
 .pagelist{ text-align:right; background:#f1f1f1; padding:7px 0;}
  .pagelist a{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; background:#fff; color:#6185a2;}
 .pagelist span{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; color:#6185a2; color:#fff; background:#6185a2;}
 .trr td{height: 50px; line-height: 50px}

</style>